
#SET(GOGO_PB_DIR $ENV{GOPATH}/src/github.com/gogo/protobuf/protobuf/)
SET(VER_FLAG '-X main.VER=${VER} -X main.VER_REVISION=${GIT_REVISION} -X main.VER_DATE=${DATE} -X main.VER_BRANCH=${GIT_BRANCH}')

file(GLOB SRC_LIST  ${CMAKE_CURRENT_SOURCE_DIR}/*.go)
add_go_executable(hms.api
    #TAG_OPTS "static"
    TAG_OPTS "netgo"
    TARGET_NAME hms.api
    GOLIST ${SRC_LIST}
    #OPTS -I${GOGO_PB_DIR}
    OPTS -ldflags ${VER_FLAG}
    OUT_DIR ${CMAKE_BINARY_DIR}/hms.api
    ARM_BUILD ${BUILD_FRO_ARM}
)
